package com.ljt.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ljt.system.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljt.system.vo.UserVo;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author ljt
 * @since 2021-06-27
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {
    List<Role> queryRolesByUserId(Long userId);
    Page<Role> queryUserByRoleName(Page rolePage , @RequestParam String roleName, @RequestParam String remark);

}
